#include<iostream>
#include<gtest/gtest.h>



int Sum(int x,int y)
{
    return x+y;
}

TEST(测试名称,加法测试1)
{
    ASSERT_EQ(Sum(10,20),40);
    ASSERT_EQ(Sum(10,20),30);
    ASSERT_EQ(Sum(10,20),20);

}

TEST(测试名称,字符串测试)
{
    std::string s="hello";
    EXPECT_EQ(s,"hello");
    EXPECT_EQ(s,"hell");
}




int main(int argc,char* argv[])
{

    testing::InitGoogleTest(&argc,argv);
    //RUN_ALL_TESTS();


    return RUN_ALL_TESTS();
}